<?php
// 删除健康知识
// header("content-type:text/html;charset=UTF-8");
include_once("conn.php");

$tid = $_GET["tid"];

$sql = "DELETE FROM tips_infos WHERE tips_ID = '".$tid."'";
$result = mysqli_query($connect_DB, $sql);
if($result){
    echo "<script>alert('删除成功！');location='admin_ControlTips.php';</script>";
}
else{
    echo "<script>alert('删除失败！请重试！');history.go(-1);</script>";
}

$connect_DB->close();
?>